package com.base.hong.ui

import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import com.base.hong.R
import com.base.hong.databinding.ActivityBottomNavigationBinding
import com.base.hong.ui.base.BaseVMActivity
import com.base.hong.ui.main.HomeFragment
import com.base.hong.ui.main.MineFragment
import com.base.hong.ui.main.ProjectFragment
import com.base.hong.ui.main.viewmodel.HomeViewModel
import com.google.android.material.navigation.NavigationBarView.OnItemSelectedListener
import com.google.android.material.navigation.NavigationView.OnNavigationItemSelectedListener
import com.htt.base_library.base.NoViewModel

class BottomNavigationActivity : BaseVMActivity<HomeViewModel, ActivityBottomNavigationBinding>() {

    val fragmentList= listOf(HomeFragment(),ProjectFragment(),MineFragment())


    override fun initView(intent: Intent?, savedInstanceState: Bundle?) {
        super.initView(intent, savedInstanceState)

    }

    fun setName(){

        viewModel.homeData.observe(this){

        }
    }

    override fun setEventListener() {


        mViewBinding.navView.setOnItemSelectedListener(OnItemSelectedListener {
            when(it.itemId){
                R.id.navigation_home->{

                    true
                }
                else -> false
            }
        })
    }
}